package com.jiejie.university.mapper;

import com.jiejie.university.entity.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {
    //查询全部
    List<Student> selectStudentAll();
    //根据学号查询
    Student selectStudentById(Integer id);
    //添加学生
    int insertStudent(Student student);
    //删除学生
    int deleteStudentById(Integer id);
    //更新学生
    int updateStudentById(Student student);
}
